#循环+1
scoreboard players add XH XH 1

#显示计分板
execute if score XH XH matches 1 run scoreboard objectives setdisplay sidebar WJ
execute if score XH XH matches 2 run scoreboard objectives setdisplay sidebar SW
execute if score XH XH matches 3 run scoreboard objectives setdisplay sidebar JS


#重置循环
execute if score XH XH matches 3 run scoreboard players reset XH XH
#循环
schedule function smp:5s 5s